package com.woniu.hospital.service;

import com.woniu.user.domain.Doctor;
import com.woniu.user.domain.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("wolf-user")
public interface IPatientService {

    @GetMapping("/patient/patientyan/{patientName}")
    Patient getPatientByNameYan(@PathVariable("patientName") String patientName);

    @GetMapping("/doctor/doctorIdByName/{doctorName}")
    Doctor getDoctorIdByName(@PathVariable("doctorName") String doctorName);

    @GetMapping("/doctor/doctorName/{doctorId}")
    String selectDoctoeNameById(@PathVariable("doctorId") long doctorId);

    @GetMapping("/patient/pp/{id}")
    Patient selectById(@PathVariable("id") long id);
    @GetMapping("/patient/idCard/{idcard}")
    Patient selByIdCard(@PathVariable("idcard") String patientIdcard);


}
